package com.daoeping.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Usr_techincref entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "usr_techincref", catalog = "daoeping")
public class Usr_techincref implements java.io.Serializable {

	// Fields

	private Integer id;
	private Bsc_techinc bsc_techinc;
	private Usr_projectexperience usr_projectexperience;

	// Constructors

	/** default constructor */
	public Usr_techincref() {
	}

	/** full constructor */
	public Usr_techincref(Bsc_techinc bsc_techinc,
			Usr_projectexperience usr_projectexperience) {
		this.bsc_techinc = bsc_techinc;
		this.usr_projectexperience = usr_projectexperience;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "techinc_id", nullable = false)
	public Bsc_techinc getBsc_techinc() {
		return this.bsc_techinc;
	}

	public void setBsc_techinc(Bsc_techinc bsc_techinc) {
		this.bsc_techinc = bsc_techinc;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "project_exp_id", nullable = false)
	public Usr_projectexperience getUsr_projectexperience() {
		return this.usr_projectexperience;
	}

	public void setUsr_projectexperience(
			Usr_projectexperience usr_projectexperience) {
		this.usr_projectexperience = usr_projectexperience;
	}

}